package com.paw.ruoyi.admin.controller;

import com.paw.ruoyi.admin.common.domain.Result;
import com.paw.ruoyi.admin.dto.SendSmsDto;
import com.paw.ruoyi.admin.service.ISmsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Rubble
 * @date 2022/3/10
 **/
@Api(tags = "短信sdk")
@RestController
public class SendSmsSdkController {


  @Autowired
  private ISmsService smsService;

  @ApiOperation("发送短信")
  public Result<Boolean> sendSms (SendSmsDto requestDto) {
   return smsService.sendSms(requestDto);
  }
}
